package gui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 * 
 * @author Oscar
 * A pre-game menu where the host can setup the rules and nature of the game, such as how
 * many players there are going to be, the size of the game board etc.
 */
public class MenuFrame extends JFrame implements ActionListener {
	//private static MenuFrame me;
	
	private JPanel northPanel;
	private JPanel centerPanel;
	private JPanel southPanel;
	
	/*public static MenuFrame getInstance(){
		if(me == null)
			me = new MenuFrame();
		return me;
	}*/
	
	public MenuFrame(Thread t){
		init();
		//t.stop();
	}
	
	private void init(){
		setTitle("Conquerors: new game!");
		setVisible(true);
		this.setSize(300, 600);
		
		northPanel = new JPanel();
		northPanel.setBackground(Color.black);
		northPanel.setPreferredSize(new Dimension(300, 100));
		northPanel.setSize(new Dimension(300, 100));
		
		centerPanel = new JPanel();
		centerPanel.setBackground(Color.black);
		centerPanel.setPreferredSize(new Dimension(300, 400));
		centerPanel.setSize(new Dimension(300, 600));
		
		southPanel = new JPanel();
		southPanel.setBackground(Color.black);
		southPanel.setPreferredSize(new Dimension(300, 100));
		southPanel.setSize(new Dimension(300, 100));
		
		add(northPanel);
		add(centerPanel);
		add(southPanel);
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
	}
}
